#ifndef SINGLE
//  An adapted ObjectSpace example for use with SGI STL

#include <algo.h>
#include <iostream.h>
#include <string.h>

#ifdef MAIN
#define swprnge1_test main
#endif
#endif
int swprnge1_test(int, char**)
{
  cout<<"Results of swprnge1_test:"<<endl;

#ifndef ACORN_CFRONT
  char word1[] = "World";
  char word2[] = "Hello";
#else
  static char word1[] = "World";
  static char word2[] = "Hello";
#endif


  cout << word1 << " " << word2 << endl;
  swap_ranges(word1, word1 + ::strlen(word1), word2);
  cout << word1 << " " << word2 << endl;
  return 0;
}
